package com.coocaa.app.support.net;

public class Result<E> {
    public int code;
    public E data;
    public Exception exception;
    public long duration;

    public static final <T> Result<T> cc(Result in, T data) {
        Result<T> out = new Result<>();
        out.data = data;
        out.code = in.code;
        out.duration = in.duration;
        out.exception = in.exception;
        return out;
    }
}
